
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <meta HTTP-EQUIV="Expires" CONTENT="-1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>Print</title>
    <link rel="stylesheet" href="__PUBLIC__/admin/parting.css">


</head>
<body>
<div class="container">

    <div class="print-box">
        <ul>
            <li>
                <h4>基本信息</h4>
                <div class="list-box">
                    <div class="list-item">
                        <p><span>订单id：</span>{$order['o_id']}</p>
                        <p><span>下单时间：</span>{$order['o_create_time']|date='Y-m-d H:i:s',###}</p>
                        <p><span>支付方式：</span>{if condition="$order['o_pay_type'] eq 1"}<span style="color: green;text-align: left;">微信</span>{/if}
                            {if condition="$order['o_pay_type'] eq 2"}<span style="color: green;text-align: left;">支付宝</span>{/if}
                            {if condition="$order['o_pay_type'] eq 3"}<span style="color: red;text-align: left;">货到付款</span>{/if}</p>
                        <p><span>支付时间：</span>{if condition="$order['o_pay_status'] eq 1"}{$order['o_pay_time']|date='Y-m-d H:i:s',###}{/if}</p>
                    </div>
                    <div class="list-item">
                        <p><span>订单编号：</span>{$order['o_order_num']}</p>
                        <p><span>配送方式：</span>{if condition="$order['o_type'] eq 1"}<span style="color: red;text-align: left;">配送上门</span>{/if}
                            {if condition="$order['o_type'] eq 2"}<span style="color: green;text-align: left;">自提</span>{/if}</p>
                        <p><span>支付状态：</span>{if condition="$order['o_pay_status'] eq 1"}<span style="color: green;text-align: left;">已支付</span>{/if}
                            {if condition="$order['o_pay_status'] neq 1"}<span style="color: red;text-align: left;">未支付</span>{/if}</p>
                        <p><span>优惠券金额：</span>{$order['uc_discount']}</p>
                    </div>
                    <div class="list-item">
                        <p><span>订单状态：</span>{if condition="$order['o_status'] eq -1"}<span style="color: red;text-align: left;">已取消</span>{/if}
                            {if condition="$order['o_status'] eq 1 && $order['o_examine'] eq 2"}<span style="color: green;text-align: left;">待审核</span>{/if}
                            {if condition="$order['o_status'] eq 1 && $order['o_examine'] neq 2"}<span style="color: green;text-align: left;">待收货</span>{/if}
                            {if condition="$order['o_status'] eq 10"}<span style="color: green;text-align: left;">已收货</span>{/if}
                            {if condition="$order['o_status'] eq 9"}<span style="color: red;text-align: left;">申请退货</span>{/if}
                            {if condition="$order['o_status'] eq 11"}<span style="color: green;text-align: left;">退货完成</span>{/if}</p>
                        <p><span>联系人电话：</span>{if condition="$order['o_type'] eq 2"}{$order['user_mobile']}{else/}{$order['o_user_mobile']}{/if}</p>
                        <p><span>支付金额：</span>{$order['o_real_price']}</p>
                        <p><span>运费：</span>{$order['o_freight']}</p>
                    </div>
                </div>
            </li>
            <li>
                <h4>收货信息</h4>
                <div class="list-box">
                    <div class="list-item">
                        <p><span>收货/自提 时间：</span>{$order['o_delivery_time']}</p>
                        <p><span>收货/自提 人员名称：</span>{$order['o_user_name']}</p>
                    </div>
                    <div class="list-item">
                        <p><span>收货/自提 电话：</span>{$order['o_user_mobile']}</p>
                        <p><span>收货/自提地址：</span>{$order['o_address']}</p>

                    </div>

                </div>
            </li>
            <li>
                <h4>商品信息</h4>
                <table class="table" border="1">
                    <thead>
                        <th style="width:5%;">商品id</th>
                        <!--<th style="width:10%;">图片</th>-->
                        <th style="width:10%;">名称</th>
                        <th style="width:10%;">规格</th>
                        <th style="width:10%;">详细价格</th>
                        <th style="width:5%;">数量</th>
                        <th style="width:5%;">单价</th>
                        <th style="width:10%;">总计</th>
                    </thead>
                    <tbody>
                    {volist name="goods" id="v"}
                    <tr>
                        <td>{$v['g_id']}</td>
                        <!--<td><img src="{$v['g_img']}" style="width:50px"></td>-->
                        <td>{$v['g_name']}</td>
                        <td>{$v['gn_name']}</td>
                        <td>{$v['gn_details_price']}</td>
                        <td>{$v['g_number']}</td>
                        <td>{$v['gn_price']}</td>
                        <td>{$v['og_all_price']}</td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
            </li>
            <!--<li>
                <h4>审核信息</h4>
                <div class="list-box">
                    <div class="list-item">
                        <p><span>审核状态：</span>{if condition="$order['o_examine'] eq 0"}<span style="color: green;text-align: left;">无需审核</span>{/if}
                            {if condition="$order['o_examine'] eq 2"}<span style="color: green;text-align: left;">待审核</span>{/if}
                            {if condition="$order['o_examine'] eq 1"}<span style="color: green;text-align: left;">审核通过</span>{/if}
                            {if condition="$order['o_examine'] eq -1"}<span style="color: red;text-align: left;">取消订单</span>{/if}</p>
                        <p><span>审核状态备注：</span>{$order['o_examine_remark']}</p>
                    </div>
                    <div class="list-item">
                        <p><span>审核人员：</span>{$order['o_examine_admin_name']}</p>
                        <p>&nbsp;</p>

                    </div>

                </div>
            </li>-->
            {if condition="$order['o_is_admin_handle'] eq 1"}
            <li>
                <h4>管理员处理信息</h4>
                <div class="list-box">
                    <div class="list-item">
                        <p><span>处理结果：</span>{if condition="$order['o_status'] eq -1"}<span style="color: red;text-align: left;">取消订单</span>{/if}
                            {if condition="$order['o_status'] gt 1"}<span style="color:green;text-align: left;">收货完成</span>{/if}</p>
                        <p><span>处理备注：</span>{$order['o_handle_remark']}</p>
                    </div>
                    <div class="list-item">
                        <p><span>管理员名称：</span>{$order['o_admin_name']}</p>
                        <p>&nbsp;</p>

                    </div>

                </div>
            </li>
            {/if}
            {notempty name="return"}
            <li>
                <h4>申请退货信息</h4>
                <div class="list-box">
                    <div class="list-item">
                        <p><span>申请退货状态：</span>{if condition="$return['or_status'] eq 1 || $return['or_status'] eq 2"}<span style="color: green;text-align: left;">正在申请</span>{/if}
                            {if condition="$return['or_status'] eq 3"}<span style="color:green;text-align: left;">退货完成</span>{/if}
                            {if condition="$return['or_status'] eq 4"}<span style="color:red;text-align: left;">取消申请</span>{/if}</p>
                        <p><span>申请退货原因：</span>{$return['or_reason']}</p>
                        <p><span>回复：</span>{$return['or_reply']}</p>
                        <p><span>处理人员：</span>{$return['or_admin_user_name']}</p>
                    </div>
                    <div class="list-item">
                        <p><span>申请时间：</span>{$return['or_create_time']|date='Y-m-d H:i:s',###}</p>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
                        <p><span>处理时间：</span>{$return['order_end_time']|date='Y-m-d H:i:s',###}</p>

                    </div>

                </div>
            </li>
            {/notempty}
            <li>
                <h4>操作记录</h4>
                <table class="table">
                    <thead>
                    <th style="width:10%;">操作者</th>
                    <th style="width:20%;">操作时间</th>
                    <th style="width:70%;">操作</th>
                    </thead>
                    <tbody>
                    {volist name="log" id="v"}
                    <tr>
                        <td>{if condition="$v['type'] eq 1"}用户{/if}{if condition="$v['type'] eq 2"}管理员{/if}{if condition="$v['type'] eq 3"}系统{/if}:{$v['user_name']}</td>
                        <td>{$v['create_time']|date='Y-m-d H:i:s',###}</td>
                        <td style="text-align: left">{$v['action']}</td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
            </li>
        </ul>
    </div>
    <div class="print-title">
        <span onclick="printDiv()">打印订单</span>
        <!--<span>修改订单</span>-->
    </div>

</div>
<script type="text/javascript">
    function printDiv()
    {
        var oldStr = document.body.innerHTML;
        // $('.no-print').hide();
        window.print();
        document.body.innerHTML = oldStr;
    }
</script>

</body>
</html>
